<template>
    <div class="demo">
        <h2 @click="showName" style="cursor: pointer;">学校名称:{{ name }}</h2>
        <h2>学校地址:{{ address }}</h2>
    </div>
</template>

<script>
import Vue from 'vue';
import {hunru,hunru2} from '../mixin'
export default Vue.extend({
    name: 'Student',
    data() {
        return {
            name: "尚硅谷",
            address: "北京",
        }
    },
    mixins:[hunru,hunru2]
}) 
</script>

<style>
.demo {
    background-color: orange;
}
</style>